import { createApp } from 'vue'
import App from '@/App.vue'
import "./permission.ts"
// 引入路由
import router from './router'
import pinia from './store'
import ElementPlus from 'element-plus'

import 'element-plus/dist/index.css'


import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'

const app = createApp(App)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// axios({
//   url:'/moken/login',
//   method:'post',
//   data:{
//     username:'test1',
//     password:'1234'
//   }
// })
app.use(pinia)
app.use(ElementPlus)
app.use(router)
app.mount('#app')